package oo.shootgame;
import java.awt.image.BufferedImage;
public class Boom extends Plane {
	private int speed;
	protected BufferedImage[] images={};
	private int index;
	public Boom(int x,int y){
		image=ShootGame.boom0;
		width=image.getWidth();
		height=image.getHeight();
		this.x=x;
		this.y=y;
		speed=1;
		index=0;
		images=new BufferedImage[]{ShootGame.boom0,ShootGame.boom1,ShootGame.boom2,
				ShootGame.boom3,ShootGame.boom4,ShootGame.boom5};		
	}
	public void step(){
		index++;
		image=images[index/50%images.length];
		y-=speed;
	}
	

}
